<div class="slide">
    <div class="main-page slide-content">
        <?php $pcode = Yii::app()->request->getParam('pcode');?>
        <?php if($pcode == "window" || $pcode == "ios" || $pcode == ""):?>
        <a href="<?php echo Yii::app()->createUrl('site/download?pcode=ios&game=casino'); ?>"><img alt="casino ios" src="<?php echo Yii::app()->createUrl('images/banner_ios.jpg'); ?>"/></a>
        <?php elseif($pcode == "android"):?>
        <a href="<?php echo Yii::app()->createUrl('site/download?pcode=android&game=casino'); ?>"><img alt="casino android" src="<?php echo Yii::app()->createUrl('images/banner_android.jpg'); ?>"/></a>
        <?php else:?>
        <a href="<?php echo Yii::app()->createUrl('site/download?pcode=j2me&game=casino'); ?>"><img alt="casino java" src="<?php echo Yii::app()->createUrl('images/banner_j2me.jpg'); ?>"/></a>
        <?php endif;?>
    </div>
</div>

<div class="content-page">    
    <div class="main-box">
        <div class="main-page">
            <div class="tab-panel-header">
                <ul class="tabBar col4" id="countrytabs">
                    <li class="tab"> <a rel="country1" class="selected"><span>TIN TỨC</span></a> </li>    
                    <li class="tab"> <a rel="country2" class=""><span>HƯỚNG DẪN</span></a> </li>    
                    <li class="tab"> <a rel="country3" class=""><span>TẢI GAME</span></a> </li>
                    <li class="tab"> <a href="http://casino888.vn/forum/" target="_blank" rel="country4" class=""><span>DIỄN ĐÀN</span></a> </li>                
                </ul>
            </div>    
            <div class="wrapper-content">                
                <div id="country1" class="tabcontent" style="display:block">
                    <?php $this->widget('zii.widgets.CListView', array(
                            'dataProvider'=>$dataEvent,
                            'itemView'=>'_post_item',
                            'htmlOptions' => array('class' => 'wrapper-table'),  
                            'summaryText'=>'',
                            'emptyText' => 'Chưa có bài viết nào!'                
                            )); 
                    ?>
                </div>
                
                <div id="country2" class="tabcontent" style="display:none">
                    <?php $this->widget('zii.widgets.CListView', array(
                            'dataProvider'=>$dataPost,
                            'itemView'=>'_post_item',
                            'htmlOptions' => array('class' => 'wrapper-table'),  
                            'summaryText'=>'',
                            'emptyText' => 'Chưa có bài viết nào!'                
                            )); 
                    ?>
                </div>
                <div id="country3" class="tabcontent" style="display: none">
                    <div style="margin-bottom: 5px;">
                        <a href="/">Trang chủ</a> » Tải game 
                    </div>
                    <?php $this->widget('zii.widgets.CListView', array(
                            'dataProvider'=>$model,
                            'itemView'=>'_game_item',
                            'htmlOptions' => array('class' => 'wrapper-table'),  
                            'summaryText'=>'',
                            'emptyText' => 'Chưa có game nào!'                
                            )); 
                    ?>
                </div>
                <div id="country4" class="tabcontent" style="display:none">
                    
                </div>
            </div>    
        </div>    
    </div>
    <div class="left-box">
        <?php $this->widget('NewsWidget') ?> 
    </div>
</div>
